package com.itheima.ThreadAPI;

public class Sleep {
    public static void main(String[] args) {
        for (int i = 0; i < 5; i++) {
            System.out.println("输入:"+i);
            if (i == 3) {
                try {
                    Thread.sleep(3000);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
